package com.zyq.util;

import lombok.Getter;
import lombok.Setter;

/**
 * BaseForm
 * @author xiaochi
 * @date 2021/12/11 22:13
 * @param <T>
 */
public abstract class BaseForm<T>{

    @Setter
    @Getter
    private Integer pageNum=1;
    @Setter
    @Getter
    private Integer pageSize=10;

    /**
     * 获取实例
     * @return 返回实体类
     */
    public abstract T buildEntity();

    /**
     * 新增分组
     */
    public interface Create{}

    /**
     * 查询分组
     */
    public interface Select{}

    /**
     * 更新分组
     */
    public interface Update{}

    /**
     * 删除分组
     */
    public interface Delete{}
}
